const { successRes, errorRes } = require('../../utils');
const { $node } = require('./common');

const $info = function (req, res) {
  const { arg1 } = req.query;
  res.send(errorRes({
    arg1,
  }));
};

const $login = function (req, res) {
  const { arg1, arg2 } = req.body;
  res.send(successRes({
    arg1,
    arg2,
  }));
};

module.exports = {
  'GET /user/info': $info,
  'GET /api/nodeServer': $node,
  'POST /user/login': $login,
};
